package com.yhy.produce.feign;


import com.yhy.common.core.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "api", path = "/feign")
public interface RemoteApiFeign {

    @PostMapping(value = "/test1")
    Result<?> test(@RequestBody Map<String, Object> map);

    @GetMapping("/test2")
    Result<?> test1(@RequestParam("param") String param);
}
